package com.molichuxing.services.infrastructure.service.impl;

import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.molichuxing.services.infrastructure.bean.PyDrivingLicenseRequestLogBean;
import com.molichuxing.services.infrastructure.dao.PyDrivingLicenseRequestLogMapper;
import com.molichuxing.services.infrastructure.dto.request.create.PyDrivingLicenseRequestLogCreateDto;
import com.molichuxing.services.infrastructure.service.PyDrivingLicenseRequestLogService;
/**
 * 
 * @author liyg
 * 鹏元驾驶证服务实现类
 * 2019-09-20
 *
 */
@Service("pyDrivingLicenseRequestLogService")
public class PyDrivingLicenseRequestLogServiceImpl implements PyDrivingLicenseRequestLogService{

	@Autowired
	private PyDrivingLicenseRequestLogMapper pyDrivingLicenseRequestLogMapper;
	
	/**
	 * 保存
	 * @param createDto
	 * @return
	 */
	@Override
	public Integer create(PyDrivingLicenseRequestLogCreateDto createDto) {
		PyDrivingLicenseRequestLogBean bean=new PyDrivingLicenseRequestLogBean();
		BeanUtils.copyProperties(createDto, bean);
		pyDrivingLicenseRequestLogMapper.create(bean);
		return bean.getId();
	}
}
